package com.his.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 微信扫码登录
 * @TableName dzm_his_wxqrlogin
 */
public class DzmHisWxqrlogin implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 创建时间
     */
    private Integer addtime;

    /**
     * 加密的用户id
     */
    private String enuid;

    /**
     * 状态，0等待，1已扫，2完成
     */
    private Boolean status;

    /**
     * 
     */
    private Date createdate;

    /**
     * 微信openid
     */
    private String openid;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 创建时间
     */
    public Integer getAddtime() {
        return addtime;
    }

    /**
     * 创建时间
     */
    public void setAddtime(Integer addtime) {
        this.addtime = addtime;
    }

    /**
     * 加密的用户id
     */
    public String getEnuid() {
        return enuid;
    }

    /**
     * 加密的用户id
     */
    public void setEnuid(String enuid) {
        this.enuid = enuid;
    }

    /**
     * 状态，0等待，1已扫，2完成
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * 状态，0等待，1已扫，2完成
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /**
     * 
     */
    public Date getCreatedate() {
        return createdate;
    }

    /**
     * 
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    /**
     * 微信openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 微信openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisWxqrlogin other = (DzmHisWxqrlogin) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()))
            && (this.getEnuid() == null ? other.getEnuid() == null : this.getEnuid().equals(other.getEnuid()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals(other.getCreatedate()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        result = prime * result + ((getEnuid() == null) ? 0 : getEnuid().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", addtime=").append(addtime);
        sb.append(", enuid=").append(enuid);
        sb.append(", status=").append(status);
        sb.append(", createdate=").append(createdate);
        sb.append(", openid=").append(openid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}